package application;

public class Char {
    public static int getPriority(char c) {
        int result = 0;
        switch (c) {
            case '(': result = 0;
            case ')': result = 1;
            case '+': result = 2;
            case '-': result = 2;
            case '*': result = 3;
            case '/': result = 3;
        }
        return result;
    }
}
